<!DOCTYPE html>
<html lang="en" ng-app="test_app1">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="lib/angular/angular.js"></script>
</head>
<body ng-controller="testCtrl1">
    <div ng-repeat="a in abc">
        <span ng-show="a.show">显示</span>
        <span>{{a.name}}</span>
        <button type="button" ng-click="open(a)">显示span</button>
    </div>
    <script>

        var apptest1 = angular.module('test_app1',[]);
        var abc = [
            {
                "id":1,
                "name":"张三",
                "show":true
            },
            {
                "id":2,
                "name":"李四",
                "show":false
            },
            {
                "id":3,
                "name":"王五",
                "show":false
            },
            {
                "id":4,
                "name":"赵六",
                "show":false
            },
            {
                "id":5,
                "name":"王二麻子",
                "show":false
            },
        ];
        apptest1.controller("testCtrl1",function($scope){
            $scope.abc = abc;
            $scope.isShow = false;
            $scope.open = function (obj) {
                obj.show = !obj.show;
            }
        });
    </script>
</body>
</html>